home *** CD-ROM | disk | FTP | other *** search
- #import "aGroup-inter.h"
- #import "aGroup.h"
- #import "pm.h"
-
- @implementation pm
- - resizeGenerator
- {
- latticesize.height = 2.0*bounds.size.height;
- latticesize.width = bounds.size.width;
- upx = [angle1slide floatValue] * latticesize.width;
- printf("Angleslider%f\n",[angle1slide floatValue]);
- upy = bounds.size.height;
- overx = latticesize.width - abs(upx);
- gravy = upy/2;
- gravx = (upx+overx)/2;
- return self;
- }
-
- - makeLatticeUnitAt: (NXPoint *) point fromImage: srcimg
- {
- id imgrep;
- NXPoint pt;
-
- pt.x = - point->x ;
- pt.y = - point->y ;
- imgrep = [srcimg bestRepresentation];
- PSgsave();
- [self clip:0.0:0.0];
- [imgrep drawAt: &pt];
- PSgrestore();
- PSgsave();
- reflect(0.0);
- [self clip:0.0:0.0];
- [imgrep drawAt: &pt];
- PSgrestore();
- return self;
- }
-
- - upTranslatePoint: (NXPoint *)pt
- {
- pt->x += 0;
- pt->y += latticesize.height;
- return self;
- }
- @end
-